package com.hassean.we.admin.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yajun
 * @since 2019-03-29
 */
@TableName("tb_user")
public class TbUser extends Model<TbUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;
    private String sex;
    private String username;
    private String phone;
    private String password;
    private String provinces;
    private String municipalities;
    private String districts;
    @TableField("town_street")
    private String townStreet;
    private String address;
    private Integer state;
    @TableField("add_time")
    private Date addTime;
    @TableField("update_time")
    private Date updateTime;
    private Integer identity;
    private Integer group;
    private String temp;
    private Long status;
    private String remark;
    @TableField("advance_text")
    private String advanceText;
    @TableField("advance_date")
    private Date advanceDate;
    @TableField("del_flag")
    private String delFlag;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getProvinces() {
        return provinces;
    }

    public void setProvinces(String provinces) {
        this.provinces = provinces;
    }

    public String getMunicipalities() {
        return municipalities;
    }

    public void setMunicipalities(String municipalities) {
        this.municipalities = municipalities;
    }

    public String getDistricts() {
        return districts;
    }

    public void setDistricts(String districts) {
        this.districts = districts;
    }

    public String getTownStreet() {
        return townStreet;
    }

    public void setTownStreet(String townStreet) {
        this.townStreet = townStreet;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }

    public Integer getGroup() {
        return group;
    }

    public void setGroup(Integer group) {
        this.group = group;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAdvanceText() {
        return advanceText;
    }

    public void setAdvanceText(String advanceText) {
        this.advanceText = advanceText;
    }

    public Date getAdvanceDate() {
        return advanceDate;
    }

    public void setAdvanceDate(Date advanceDate) {
        this.advanceDate = advanceDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "TbUser{" +
        ", userId=" + userId +
        ", sex=" + sex +
        ", username=" + username +
        ", phone=" + phone +
        ", password=" + password +
        ", provinces=" + provinces +
        ", municipalities=" + municipalities +
        ", districts=" + districts +
        ", townStreet=" + townStreet +
        ", address=" + address +
        ", state=" + state +
        ", addTime=" + addTime +
        ", updateTime=" + updateTime +
        ", identity=" + identity +
        ", group=" + group +
        ", temp=" + temp +
        ", status=" + status +
        ", remark=" + remark +
        ", advanceText=" + advanceText +
        ", advanceDate=" + advanceDate +
        ", delFlag=" + delFlag +
        "}";
    }
}
